<?php


	require_once "Controller/menu_controller.php";
	$menu_controller = new menu_controller();

?>

<ul class="menuGauche">
	<li class="menuGaucheListItem"><a class="menuGaucheLink" href="galleries.php">Manage Galleries</a></li>
	<li class="menuGaucheListItem"><a class="menuGaucheLink" href="photos.php">Manage Photos</a></li>
</ul>
<ul class="menuConnection">
	<li class="menuConnectionItem" id="flickrConnection"><div class="connectModule" id="flickrConnectModule" style="display:none"><?php include 'connectors/flickrConnect.php';?></div></li>
	<li class="menuConnectionItem" id="facebookConnection"><div class="connectModule" style="display:none"></div></li>
	<li class="menuConnectionItem" id="picasaConnection"><div class="connectModule" style="display:none;"></div></li>
</ul>
<form method="post" action="<?php echo $_SERVER['PHP_SELF'];?>">
	<input type="submit" name="logout" value="logout"/>
</form>


<script type="text/javascript">
var displayConnectModule = false;

$('li#flickrConnection').mouseenter(function(){
	$("#flickrConnectModule").show();});
$('li#flickrConnection').mouseleave(function(){
	$("#flickrConnectModule").hide();
});



$('li#facebookConnection').toggle(
	function(){
	$('.connectModule').html("<?php //include "flickrConnect.php";?>");},
	function(){
	$('.connectModule').html("");});


$('li#picasaConnection').toggle(
	function(){
	$('.connectModule').html("<?php //include "flickrConnect.php";?>");},
	function(){
	$('.connectModule').html("");});
</script>